# -*- coding: utf-8 -*-

import logging
from aiohttp import web

logging.basicConfig(level=logging.INFO)

routes = web.RouteTableDef()


@routes.get('/')
async def index(request):
    str = '<h1>Awesome</h1>'
    return web.Response(body=str, content_type='text/html')


app = web.Application()
app.add_routes(routes)
logging.info('server begin at 127.0.0.1:9000')
web.run_app(app, host='127.0.0.1', port=9000)

